/*@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");*/

/* fredoka-one-regular */
@font-face {
    font-family: 'Fredoka One';
    font-style: normal;
    font-weight: regular;
    src: url('//lib.baomitu.com/fonts/fredoka-one/fredoka-one-regular.eot'); /* IE9 Compat Modes */
    src: local('Fredoka One'), local('FredokaOne-Normal'),
    url('//lib.baomitu.com/fonts/fredoka-one/fredoka-one-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('//lib.baomitu.com/fonts/fredoka-one/fredoka-one-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('//lib.baomitu.com/fonts/fredoka-one/fredoka-one-regular.woff') format('woff'), /* Modern Browsers */
    url('//lib.baomitu.com/fonts/fredoka-one/fredoka-one-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('//lib.baomitu.com/fonts/fredoka-one/fredoka-one-regular.svg#FredokaOne') format('svg'); /* Legacy iOS */
}

:root{
    --char-index:2;
    --box-blue:1;
    --gift-1-col:#3DDC81;
    --gift-1-width:100px;
    --gift-2-col:#FFA726;
    --gift-2-width:130px;
    --gift-2-height:120px;
    --gift-3-col:#1BB5FE;
    --gift-3-width:120px;
    --gift-3-height:160px;
}
body {
    /*background: #34E1FF;*/
    font-family: 'Fredoka One', cursive;
    overflow: hidden;
    background: url('images/snow1.png'),url('images/snow2.png'),url(images/snow-bg.png) center,#37494c;
    animation: 10s snow linear infinite;
}

@keyframes snow{
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 500px 500px, 1000px 500px;
    }
}

.container {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.text {
    min-width: 100%;
    text-align: center;
    color: white;
    text-shadow: 1px 1px #2C3A49;
    font-size: 2.2em;
}

.text .char {
    -webkit-animation: slide-in 1s cubic-bezier(0.5, 0, 0.5, 1) both;
    animation: slide-in 1s cubic-bezier(0.5, 0, 0.5, 1) both;
    -webkit-animation-delay: calc(60ms * var(--char-index));
    animation-delay: calc(60ms * var(--char-index));
}
.cur .first .char {
    -webkit-animation: slide-in 1s cubic-bezier(0.5, 0, 0.5, 1) both;
    animation: slide-in 1s cubic-bezier(0.5, 0, 0.5, 1) both;
    -webkit-animation-delay: calc(60ms * var(--char-index));
    animation-delay: calc(60ms * var(--char-index));
}
.cur .second .char {
    -webkit-animation: slide-in 1s cubic-bezier(0.5, 0, 0.5, 1) backwards;
    animation: slide-in 1s cubic-bezier(0.5, 0, 0.5, 1) backwards;
    -webkit-animation-delay: calc(800ms * var(--char-index));
    animation-delay: calc(800ms * var(--char-index));
}

@-webkit-keyframes slide-in {
    from {
        -webkit-transform: translateY(-1em) rotate(-0.5turn) scale(0.5);
        transform: translateY(-1em) rotate(-0.5turn) scale(0.5);
        opacity: 0;
    }
}

@keyframes slide-in {
    from {
        -webkit-transform: translateY(-1em) rotate(-0.5turn) scale(0.5);
        transform: translateY(-1em) rotate(-0.5turn) scale(0.5);
        opacity: 0;
    }
}

.presents {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    align-items: flex-end;
    height: 200px;
    position: relative;
}

.ribbon {
    background: #F75D4C;
}
.ribbon::before {
    top: 21%;
}
.bow {
    background: #F75D4C;
}
.bow::before, .bow::after {
    background: #F75D4C;
}
.present{
    position: relative;
}
.green {
    left: -20px;
    width: var(--gift-1-width);
    height: var(--gift-1-width);
    z-index: 1;
}

.green:hover {
    -webkit-animation: 0.5s green;
    animation: 0.5s green;
}

.green .lid {
    background: var(--gift-1-col);
}

.green .box {
    background-image: radial-gradient(#fff 20%, transparent 20%), radial-gradient(#fff 20%, transparent 20%);
    background-color: var(--gift-1-col);
}

@-webkit-keyframes green {
    0% {
        width: var(--gift-1-width);
        height: var(--gift-1-width);
    }
    30% {
        width: calc(var(--gift-1-width) + 10px);
        height: calc(var(--gift-1-width) - 10px);
    }
    60% {
        width: calc(var(--gift-1-width) - 10px);
        height: calc(var(--gift-1-width) + 10px);
    }
    100% {
        width: var(--gift-1-width);
        height: var(--gift-1-width);
    }
}

@keyframes green {
    0% {
        width: var(--gift-1-width);
        height: var(--gift-1-width);
    }
    30% {
        width: calc(var(--gift-1-width) + 10px);
        height: calc(var(--gift-1-width) - 10px);
    }
    60% {
        width: calc(var(--gift-1-width) - 10px);
        height: calc(var(--gift-1-width) + 10px);
    }
    100% {
        width: var(--gift-1-width);
        height: var(--gift-1-width);
    }
}

.orange {
    left: 20px;
    width: var(--gift-2-width);
    height: var(--gift-2-height);
    z-index: 10;
}

.orange:hover {
    -webkit-animation: 0.5s orange;
    animation: 0.5s orange;
}
.orange .lid {
    background: var(--gift-2-col);
}
.orange .box {
    /*background-image: radial-gradient(#2C3A49 20%, transparent 20%), radial-gradient(#2C3A49 20%, transparent 20%);*/
    background-image: radial-gradient(#fff 20%, transparent 20%), radial-gradient(#fff 20%, transparent 20%);
    background-color: var(--gift-2-col);
}
@-webkit-keyframes orange {
    0% {
        width: var(--gift-2-width);
        height: var(--gift-2-height);
    }
    30% {
        width: calc(var(--gift-2-width) + 10px);
        height: calc(var(--gift-2-height) - 10px);
    }
    60% {
        width: calc(var(--gift-2-width) - 10px);
        height: calc(var(--gift-2-height) + 10px);
    }
    100% {
        width: var(--gift-2-width);
        height: var(--gift-2-height);
    }
}

@keyframes orange {
    0% {
        width: var(--gift-2-width);
        height: var(--gift-2-height);
    }
    30% {
        width: calc(var(--gift-2-width) + 10px);
        height: calc(var(--gift-2-height) - 10px);
    }
    60% {
        width: calc(var(--gift-2-width) - 10px);
        height: calc(var(--gift-2-height) + 10px);
    }
    100% {
        width: var(--gift-2-width);
        height: var(--gift-2-height);
    }
}

.blue {
    left: 0;
    width: var(--gift-3-width);
    height: var(--gift-3-height);
    z-index: 0;
}

.blue:hover,.blue:active {
    -webkit-animation: 0.5s blue;
    animation: 0.5s blue;
}

.blue .lid {
    background: var(--gift-3-col);
}

.blue .box {
    /*background-image: radial-gradient(transparent 20%, transparent 20%), radial-gradient(transparent 20%, transparent 20%);*/
    background-image: radial-gradient(#fff 20%, transparent 20%), radial-gradient(#fff 20%, transparent 20%);
    background-color: var(--gift-3-col);
}
@-webkit-keyframes blue {
    0% {
        width: var(--gift-3-width);
        height: var(--gift-3-height);
    }
    30% {
        width: calc(var(--gift-3-width) + 10px);
        height: calc(var(--gift-3-height) - 10px);
    }
    60% {
        width: calc(var(--gift-3-width) - 10px);
        height: calc(var(--gift-3-height) + 10px);
    }
    100% {
        width: var(--gift-3-width);
        height: var(--gift-3-height);
    }
}

@keyframes blue {
    0% {
        width: var(--gift-3-width);
        height: var(--gift-3-height);
    }
    30% {
        width: calc(var(--gift-3-width) + 10px);
        height: calc(var(--gift-3-height) - 10px);
    }
    60% {
        width: calc(var(--gift-3-width) - 10px);
        height: calc(var(--gift-3-height) + 10px);
    }
    100% {
        width: var(--gift-3-width);
        height: var(--gift-3-height);
    }
}

.present {
    position: relative;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    cursor: pointer;
}

.present .lid {
    height: 20%;
    width: calc(100% + 10px);
    border: 4px solid #2C3A49;
    border-radius: 5px;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5), 5px 0 rgba(0, 0, 0, 0.15);
}

.present .box {
    width: 100%;
    height: 100%;
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
    border: 4px solid #2C3A49;
    border-top: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: inset -10px 5px rgba(0, 0, 0, 0.3), 5px 0 rgba(0, 0, 0, 0.15);
}

.present .ribbon {
    position: absolute;
    top: -3px;
    width: 30px;
    height: calc(100% - 5px);
    border: 4px solid #2C3A49;
    border-radius: 5px;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5);
}

.present .ribbon::before {
    display: block;
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
}

.present .bow {
    position: absolute;
    top: -20px;
    width: 20px;
    height: 20px;
    border: 4px solid #2C3A49;
    border-radius: 50%;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5), inset -2px -5px rgba(0, 0, 0, 0.3);
}

.present .bow::before, .present .bow::after {
    display: block;
    content: '';
    position: absolute;
    top: -10px;
    width: 30px;
    height: 30px;
    border: 4px solid #2C3A49;
    border-radius: 50%;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5), inset -2px -5px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.present .bow::before {
    left: 15px;
}

.present .bow::after {
    right: 15px;
}

.la-page {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1;
    background: rgba(0, 0, 0, 0.456);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.6s ease 0s;
    transform: scale(0.3, 0.3) rotate(-0deg);
    -ms-transform: scale(0.3, 0.3) rotate(-0deg); /* Internet Explorer */
    -moz-transform: scale(0.3, 0.3) rotate(-0deg); /* Firefox */
    -webkit-transform: scale(0.3, 0.3) rotate(-0deg); /* Safari 和 Chrome */
    -o-transform: scale(0.3, 0.3) rotate(-0deg); /* Opera */
}

.la-page.cur {
    -webkit-transition: all 0.6s ease 0s;
    opacity: 1;
    visibility: visible;
    transform: scale(1, 1) rotate(0deg);
    -ms-transform: scale(1, 1) rotate(0deg); /* Internet Explorer */
    -moz-transform: scale(1, 1) rotate(0deg); /* Firefox */
    -webkit-transform: scale(1, 1) rotate(0deg); /* Safari 和 Chrome */
    -o-transform: scale(1, 1) rotate(0deg); /* Opera */
}

.la-page .video {
    background: #000;
}

.la-model {
    overflow: hidden;
    width: 300px;
    height: auto;
    position: fixed;
    top: 15%;
    left: 50%;
    margin-left: -150px;
    background: #fff;
    border-radius: 10px;
    z-index: 2;
    padding-bottom: 20px;
}

.la-model .title {
    font-size: 16px;
    text-align: center;
    color: #333;
    padding: 20px;
}

.la-model .btn {
    width: 110px;
    height: 51px;
    background: url(./images/close.png) no-repeat center;
    background-size: auto 100%;
    margin: 10px auto 0 auto;
    cursor: pointer;
    line-height: 42px;
    text-align: center;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

.la-shoushi {
    position: absolute;
    top: 38%;
    left: 51%;
    z-index: 999;
    animation: animGesture 3s linear 3s infinite alternate;
    transform: scale(1.25, 1.25) rotate(-9deg);
}

.la-shoushi img {
    width: 70px;
}

@keyframes animGesture {
    0% {
        transform: scale(1.25, 1.25) rotate(-9deg);
    }
    7% {
        transform: scale(1.2, 1.2) rotate(-8deg);
    }
    12% {
        transform: scale(1.15, 1.15) rotate(-7deg);
    }
    19% {
        transform: scale(1.1, 1.1) rotate(-5deg);
    }
    25% {
        transform: scale(1, 1) rotate(-4deg);
    }
    30% {
        left:25%;top:60%
    }
    36% {
        transform: scale(1.25, 1.25) rotate(-9deg);
    }
    42% {
        transform: scale(1.2, 1.2) rotate(-8deg);
    }
    48% {
        transform: scale(1.15, 1.15) rotate(-7deg);
    }
    54% {
        transform: scale(1.1, 1.1) rotate(-5deg);
    }
    66% {
        transform: scale(1, 1) rotate(-4deg);
    }
    66% {
        left:75%;top:60%
    }
    72% {
        transform: scale(1.25, 1.25) rotate(-9deg);
    }
    78% {
        transform: scale(1.2, 1.2) rotate(-8deg);
    }
    84% {
        transform: scale(1.15, 1.15) rotate(-7deg);
    }
    90% {
        transform: scale(1.1, 1.1) rotate(-5deg);
    }
    98% {
        transform: scale(1, 1) rotate(-4deg);
    }
    100% {
        left:51%;top:38%
    }
}
